home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 5 / Amiga Tools 5.iso / grafik / 3d & render tools / irit / man / man6 / poly.6 < prev    next >
Encoding:
Text File  |  1996-07-16  |  937 b   |  33 lines

  1. .TH POLY
  2.  6 "IRIT Version 6.0" 
  3. .SH NAME
  4. POLY
  5.  
  6.  
  7.  
  8.  PolygonType POLY( ListType VrtxList, NumericType IsPolyline )
  9.  
  10. Creates a single polygon/polyline (and therefore open) object, defined by
  11. the vertices in VrtxList (see LIST). All elements in VrtxList
  12. must be of VectorType type. If IsPolyline, a polyline is created,
  13. otherwise a polygon.
  14.  
  15. Example:
  16.  
  17.     V1  = vector( 0.0, 0.0, 0.0 );
  18.     V2  = vector( 0.3, 0.0, 0.0 );
  19.     V3  = vector( 0.3, 0.0, 0.1 );
  20.     V4  = vector( 0.2, 0.0, 0.1 );
  21.     V5  = vector( 0.2, 0.0, 0.5 );
  22.     V6  = vector( 0.3, 0.0, 0.5 );
  23.     V7  = vector( 0.3, 0.0, 0.6 );
  24.     V8  = vector( 0.0, 0.0, 0.6 );
  25.     V9  = vector( 0.0, 0.0, 0.5 );
  26.     V10 = vector( 0.1, 0.0, 0.5 );
  27.     V11 = vector( 0.1, 0.0, 0.1 );
  28.     V12 = vector( 0.0, 0.0, 0.1 );
  29.     I = POLY( list( V1, V2, V3, V4, V5, V6, V7, V8, V9, V10, V11, V12 ),
  30.               FALSE );
  31.  
  32. constructs an object with a single polygon in the shape of the letter I.
  33.